#include "user.h"
Q_GLOBAL_STATIC(User1, user)



User1::User1(){

}




User1* User1::instance(){
    return user;
}

void User1::setUserName(QString username){
    this->username = username;
}

QString User1::getUserName(){
    qDebug() << User1::instance()->username;
    return username;
}

void User1::setUserIndex(int a){
    this->userIndex = a;
}

int User1::getUserIndex(){
    return userIndex;
}
